pen.jumpto (1,1);
screen.clear;
pen.ink=blue;
call sky;
pen.jumpto (1,19);
pen.ink=green;
call grass;
pen.jumpto (3,4);
pen.ink=black;
call roof;
pen.jumpto (3,9);
pen.ink=red;
call wall;
pen.jumpto (19,9);
call wall;
pen.jumpto (10,18);
call door;
pen.jumpto (5,14);
call window;
pen.jumpto (14,14);
call window;
pen.jumpto (5,10);
call window;
pen.jumpto (14,10);
call window;
pen.jumpto (5,6);
call chimney;
pen.jumpto (1,1);
end script;

//sky
function sky
{
pen.east (39);
}

//roof
function roof
{
pen.east (16);
pen.south (1);
pen.west (16);
pen.south (1);
pen.east (16);
pen.south (1);
pen.west (16);
pen.south (1);
pen.east (16);
}

//wall
function wall
{
pen.south (9);
}

//door
function door
{
pen.north (3);
pen.east (2);
pen.south (3);
pen.west (1);
pen.north (2);
}

//window
function window
{
pen.east (3);
pen.south (2);
pen.west (3);
pen.north (1);
pen.east (3);
}

//chimney
function chimney
{
pen.north (3);
pen.east (1);
pen.south (3);
}

//grass
function grass
{
pen.ink=green;
pen.east (40);
}